import ValidationModule from '../utils/lin-validator-v2.js'
const { Rule, LinValidator } = ValidationModule

class UserLoginValidator extends LinValidator {
    constructor() {
        super()
        this.mobile = [
            new Rule('isLength', '请输入手机号码', { min: 1 }),
            new Rule(
                'matches',
                '手机号格式不正确',
                /^1[3456789]\d{9}$/
            )
        ]
    }
}
export default {
    UserLoginValidator
}